tests: Explicitly unset LANGUAGE after setting LC_ALL
authorSimon McVittie <smcv@collabora.com>
Tue, 19 Sep 2017 13:41:18 +0000 (14:41 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 19 Sep 2017 15:16:09 +0000 (15:16 +0000)
commit223c940b46a4bb335665df7436566b73cdf0effd
tree48d5b11b06ca55fddd928f7856b772290fb7bca1
parent13c3898cc2ecc4d89b5756a2db78d709dd9e9f45
tests: Explicitly unset LANGUAGE after setting LC_ALL

As a GNU extension, LANGUAGE takes precedence over LC_ALL for
gettext(3) whenever the locale is not C, causing tests that grep for
specific English strings to fail when run in non-English locales.
The upstream glibc proposal for C.UTF-8 would give C.UTF-8 the same
special case as C here, but the implementation in Debian does not
currently have this, so we have to unset LANGUAGE too.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Closes: #1188
Approved by: jlebon
tests/libtest-core.sh